import request from '@/utils/request'

// 查询设备型号列表
export function listDeviceModel(query) {
  return request({
    url: '/genius/platform-device-model/list',
    method: 'get',
    params: query
  })
}

// 查询设备型号详情
export function getDeviceModelDetail(id) {
  return request({
    url: '/genius/platform-device-model/' + id,
    method: 'get'
  })
}

// 新增设备型号
export function addDeviceModel(data) {
  return request({
    url: '/genius/platform-device-model',
    method: 'post',
    data: data
  })
}

// 修改设备型号
export function updateDeviceModel(data) {
  return request({
    url: '/genius/platform-device-model',
    method: 'put',
    data: data
  })
}
// 导出设备型号
export function exportDeviceModel(data) {
  return request({
    url: '/genius/platform-device-model/export',
    method: 'post',
    data: data
  })
}

// 逻辑删除设备型号信息
export function delDeviceModel(ids) {
  return request({
    url: '/genius/platform-device-model/' + ids   ,
    method: 'delete'
  })
}
